package com.pigs.pigsordersystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import javax.persistence.Table;

/**
 * @author Y.yang
 * @since 2020-03-14
 * 库存实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ApiModel("库存实体类")
@TableName("inventory")
public class InventoryEntity {

    /**
     * 库存id
     */
    @TableId(value = "inventory_id", type = IdType.AUTO)
    @ApiModelProperty(value = "库存id",required = true)
    private Integer inventoryId;

    /**
     * 库存 修改时间
     */
    @ApiModelProperty(value = "库存修改数据",required = true)
    private String inventoryUpdateTime;

    /**
     * 总数量
     */
    @ApiModelProperty(value = "库存数",required = true)
    private Integer inventoryNum;

    /**
     * 产品id
     */
    @ApiModelProperty(value = "产品id",required = true)
    private Integer productId;


}
